/* ****************************************************************************
 * Author: 671643387
 * Date: 2015/3/19
 * ***************************************************************************/

Ext.define("sggm.view.UserBasicDataSingleEditor", {
    extend: "Ext.Window",
    alias: "widget.userBasicDataSingleEditor",
    title: "基础数据",
    width: 300,
    height: 300,
    modal: true,
    layout:"form",
    labelWidth:45,
    plain:true,
    bodyStyle:"padding:5px",
    buttonAlign: "center",
    items: [{
        xtype: "fieldset",
        title: "变更数据",
        autoHeight: true,
        defaultType: "radio",
        items: [
            {
                xtype: "radiogroup",
                labelWidth: 0,
                columns: 2,
                items: [
                    {boxLabel: "金币", name: "type", inputValue: 'gold', checked: true},
                    {boxLabel: "粮草", name: "type", inputValue: 'food'},
                    {boxLabel: "经验", name: "type", inputValue: 'xp'},
                    {boxLabel: "军功", name: "type", inputValue: 'honor'},
                    {boxLabel: "等级", name: "type", inputValue: 'level'},
                    {boxLabel: "武魂", name: "type", inputValue: 'soul'}
                ]
            }
        ]
    }, {
        xtype: "fieldset",
        title: "操作类型",
        autoHeight: true,
        defaultType: "radio",
        items: [
            {
                xtype: "radiogroup",
                labelWidth: 0,
                columns: 2,
                items: [
                    {boxLabel: "增加值", name: "way", inputValue: 'add'},
                    {boxLabel: "设置值", name: "way", inputValue: 'set', checked: true}
                ]
            }
        ]
    }, {
        xtype: "textfield",
        labelWidth: 0,
        name: "value"
    }],
    buttons: [{
        text: "修改",
        action: "updateUserDataSingle"
    }]
});